import axios from "@/utils/api.request";

// 商品分类添加
export const categoryAdd = info => {
  return axios.request({
    url: "foodType/add",
    data: info,
    method: "post"
  });
};
// 商品分类修改
export const categoryUpdate = info => {
  return axios.request({
    url: "foodType/update",
    data: info,
    method: "post"
  });
};
// 商品分类删除
export const categoryDel = info => {
  return axios.request({
    url: "foodType/del",
    data: info,
    method: "post"
  });
};
// 商品分类查询
export const categoryPage = info => {
  return axios.request({
    url: "foodType/page",
    data: info,
    method: "post"
  });
};